<template>
  <div class="hello">
    <h1>{{ msg }}</h1>
     <router-link to="/">back to home</router-link>
    <router-link to="/params/12/新闻标题">Params</router-link>

     <!--在router/index.js 的路由 中定义了 承载 hi1 , hi2 子路由页面 -->
     <router-view></router-view>
  </div>
</template>

<script>
export default {
  name: 'Hi',
  data () {
    return {
      msg: 'Hi~, hi-main page'
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
h1, h2 {
  font-weight: normal;
}
ul {
  list-style-type: none;
  padding: 0;
}
li {
  display: inline-block;
  margin: 0 10px;
}
a {
  color: #42b983;
}
</style>
